]> dgit.raspbian.org Git - gnome-shell.git/commit
tests/unit: Add a helper method in TimeLimitsManager
authorIgnacy Kuchciński <ignacykuchcinski@gnome.org>
Thu, 28 Aug 2025 09:23:15 +0000 (11:23 +0200)
committerIgnacy Kuchciński <ignacykuchcinski@gnome.org>
Wed, 5 Nov 2025 14:22:12 +0000 (15:22 +0100)
commit5b693f01a3a7823b46297c55dbb1e4bac8321b36
tree44224711c9d990397b33d0618392d47932cf2752
parent872d6a168e07eaef4a17603705b4033dd7016b40
tests/unit: Add a helper method in TimeLimitsManager

Currently we create a new `TimeLimitsManager` for each of the unit tests
for testing the wellbeing screen time limit, with the same parameters.
Rather than having to repeat the entire constructor call multiple times,
factor it out into a helper method on the `TestHarness`. There is no
difference in functionality itself.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3841>
tests/unit/timeLimitsManager.js